package com.wt.admin.mapper.ai;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wt.admin.domain.dto.ai.MCPDTO;
import com.wt.admin.domain.entity.ai.MCPEntity;
import com.wt.admin.domain.vo.ai.MCPVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MCPMapper extends BaseMapper<MCPEntity> {

    @Select("select * from ai_mcp ")
    IPage<MCPVO> list(Page<MCPDTO> page,@Param("data") MCPDTO data);

    @Select("select * from ai_mcp")
    List<MCPVO> getMcpList();

    List<MCPEntity> findByIds(@Param("ids") List<Integer> tools);
}
